<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'attachment-file-form',
	'enableAjaxValidation'=>false,
	'htmlOptions'=>array('enctype'=>'multipart/form-data')
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'fileName'); ?>
		<?php echo $form->fileField($model,'fileName'); ?>
		<?php echo $form->error($model,'fileName'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'note'); ?>
		<?php echo $form->textArea($model,'note',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'note'); ?>
	</div>

<?php /**

	<div class="row">
		<?php echo $form->labelEx($model,'storeFileName'); ?>
		<?php echo $form->textField($model,'storeFileName',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'storeFileName'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'attachmentId'); ?>
		<?php echo $form->textField($model,'attachmentId'); ?>
		<?php echo $form->error($model,'attachmentId'); ?>
	</div>
**/?>
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Upload' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->